package com.flowerSystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.flowerSystem.entity.Coupon;
import com.flowerSystem.entity.Productinformation;
import com.flowerSystem.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鲜花遇上牛战士
 * @since 2023-08-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Orderlist对象", description = "")
public class Orderlist implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("下单时间")
    private String orderTime;

    @ApiModelProperty("产品信息对象")
    private Productinformation productinformation;

    @ApiModelProperty("用户对象")
    private User user;

    @ApiModelProperty("订单数量")
    private Integer salesNumber;

    @ApiModelProperty("总金额")
    private Double sumMoney;

    @ApiModelProperty("实际支付金额")
    private Double actuallyMoney;

    @ApiModelProperty("送达时间")
    private String deliverTime;

    @ApiModelProperty("订单状态")
    private String orderStatus;

    @ApiModelProperty("优惠卷对象")
    private Coupon coupon;

    @ApiModelProperty("逻辑删除字段")
    @TableLogic
    private Integer isDelete;
}
